package com.base.logistics.jdl.bean.trace;

import java.io.Serializable;
import java.util.List;

/**
 * <pre>
 * 查询物流轨迹（给消费者）响应对象
 * </pre>
 * @since 2021-02-26
 */
public class GetWaybill2cTraceByWaybillCodeResponse   implements Serializable {

    /**
     * 成功标识
     */
    private Integer statusCode;

    /**
     * 描述信息
     */
    private String statusMessage;

    /**
     * 轨迹信息
     */
    private List<ExtTraceDTO> data;

    public GetWaybill2cTraceByWaybillCodeResponse() {
    }

    public Integer getStatusCode() {
        return this.statusCode;
    }

    public String getStatusMessage() {
        return this.statusMessage;
    }

    public List<ExtTraceDTO> getData() {
        return this.data;
    }

    public void setStatusCode(Integer statusCode) {
        this.statusCode = statusCode;
    }

    public void setStatusMessage(String statusMessage) {
        this.statusMessage = statusMessage;
    }

    public void setData(List<ExtTraceDTO> data) {
        this.data = data;
    }

    public boolean equals(final Object o) {
        if (o == this) return true;
        if (!(o instanceof GetWaybill2cTraceByWaybillCodeResponse)) return false;
        final GetWaybill2cTraceByWaybillCodeResponse other = (GetWaybill2cTraceByWaybillCodeResponse) o;
        if (!other.canEqual((Object) this)) return false;
        final Object this$statusCode = this.getStatusCode();
        final Object other$statusCode = other.getStatusCode();
        if (this$statusCode == null ? other$statusCode != null : !this$statusCode.equals(other$statusCode))
            return false;
        final Object this$statusMessage = this.getStatusMessage();
        final Object other$statusMessage = other.getStatusMessage();
        if (this$statusMessage == null ? other$statusMessage != null : !this$statusMessage.equals(other$statusMessage))
            return false;
        final Object this$data = this.getData();
        final Object other$data = other.getData();
        if (this$data == null ? other$data != null : !this$data.equals(other$data)) return false;
        return true;
    }

    protected boolean canEqual(final Object other) {
        return other instanceof GetWaybill2cTraceByWaybillCodeResponse;
    }

    public int hashCode() {
        final int PRIME = 59;
        int result = 1;
        final Object $statusCode = this.getStatusCode();
        result = result * PRIME + ($statusCode == null ? 43 : $statusCode.hashCode());
        final Object $statusMessage = this.getStatusMessage();
        result = result * PRIME + ($statusMessage == null ? 43 : $statusMessage.hashCode());
        final Object $data = this.getData();
        result = result * PRIME + ($data == null ? 43 : $data.hashCode());
        return result;
    }

    public String toString() {
        return "GetWaybill2cTraceByWaybillCodeResponse(statusCode=" + this.getStatusCode() + ", statusMessage=" + this.getStatusMessage() + ", data=" + this.getData() + ")";
    }
}
